<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        body {
            margin: 0px;
            text-align: center;
        }

        #reg {
            width: 370px;
            border: 1px solid blue;
            line-height: 40px;
            margin: 0 auto;
            padding-left: 100px;
            padding-top: 15px;
            padding-bottom: 15px;
            text-align: left;
            font-size: 14px;
        }

        .error {
            color: red;
        }
    </style>
    <link rel="stylesheet" href="mystyle.css">
</head>

<body>
    <?php include "headerNav.html" ?>
    <h1>用户注册</h1>
    <form style="margin-bottom: 5rem;" method="post" action="registerdata.php" enctype="multipart/form-data">
        <div id="reg">
            <div>学号：<input type="text" name="stuno"><span class="error">*</span></div>
            <div>姓名：<input type="text" name="stuname"><span class="error">*</span></div>
            <div>密码：<input type="password" name="pwd"><span class="error">*</span></div>
            <div style="margin-left: -28px;">确认密码：<input type="password" name="confirmpwd"><span class="error">*</span></div>
            <div>
                班级：<select name="classname">
                    <option value="202301">计科23-1班</option>
                    <option value="202301">计科23-2班</option>
                    <option value="202301">计科23-3班</option>
                </select>
            </div>
            <div>
                性别：<input type="radio" name="sex" value="男">男
                <input type="radio" name="sex" value="女" checked>女
            </div>
            <div>
                爱好：<input type="checkbox" name="hobby[]" value="阅读">阅读
                <input type="checkbox" name="hobby[]" value="运动">运动
                <input type="checkbox" name="hobby[]" value="电影">电影
                <input type="checkbox" name="hobby[]" value="音乐">音乐
            </div>
            <div style="margin-left: 42px;margin-top: -12px;">
                <input type="checkbox" name="hobby[]" value="旅游">旅游
                <input type="checkbox" name="hobby[]" value="上网">上网
            </div>
            <div>
                手机：<input type="text" name="mobile"><span class="error">*</span>
            </div>
            <div>
                邮箱：<input type="text" name="email"><span class="error">*</span>
            </div>
            <div>
                相片：<input type="file" name="photo">
                <br>*上传文件大小不要超过2M，必须是.jpg、.gif、.png类型
            </div>
            <div style="margin-left: 85px;">
                <input type="submit" name="btnsubmit" value="注册">
            </div>
        </div>
    </form>
    <?php
    include "Footer.html";
    ?>
</body>

</html>